import { dataCompanyAxios } from '@/utils/request.ts'

export const postCompanyInfoDetailFinanceProcess = (data: any): Promise<any> => {
  return dataCompanyAxios(
    {
      url: '/companyInfo/detail/financeProcess',
      method: 'post',
      data: data
    },
    {
      extra_handle_response: true
    }
  )
}

export const postCompanyInfoDetailInvestInvestSpaceInv = (data: any): Promise<any> => {
  return dataCompanyAxios(
    {
      url: '/companyInfo/detail/invest/investSpace/inv',
      method: 'post',
      data: data
    },
    {
      extra_handle_response: true
    }
  )
}

export const getCompanyInfoDetailProductStageCount = (data: any): Promise<any> => {
  return dataCompanyAxios(
    {
      url: '/companyInfo/detail/product/stageCount',
      method: 'get',
      params: data
    },
    {
      extra_handle_response: true
    }
  )
}

export const postCompanyInfoDetailProductCopyDrugLine = (data: any): Promise<any> => {
  return dataCompanyAxios(
    {
      url: '/companyInfo/detail/product/copyDrugLine',
      method: 'post',
      data: data
    },
    {
      extra_handle_response: true
    }
  )
}

export const postCompanyInfoDetailProductMainProductService = (data: any): Promise<any> => {
  return dataCompanyAxios(
    {
      url: '/companyInfo/detail/product/mainProductService',
      method: 'post',
      data: data
    },
    {
      extra_handle_response: true
    }
  )
}

export const postCompanyInfoDetailProductMedicalDevice = (data: any): Promise<any> => {
  return dataCompanyAxios(
    {
      url: '/companyInfo/detail/product/medicalDevice',
      method: 'post',
      data: data
    },
    {
      extra_handle_response: true
    }
  )
}

export const postCompanyInfoDetailProductNewDrugLine = (data: any): Promise<any> => {
  return dataCompanyAxios(
    {
      url: '/companyInfo/detail/product/newDrugLine',
      method: 'post',
      data: data
    },
    {
      extra_handle_response: true
    }
  )
}

export const postCompanyInfoDetailTecProject = (data: any): Promise<any> => {
  return dataCompanyAxios(
    {
      url: '/companyInfo/detail/tecProject',
      method: 'post',
      data: data
    },
    {
      extra_handle_response: true
    }
  )
}

export const postCompanyInfoDetailRankQueryRankPageList = (data: any): Promise<any> => {
  return dataCompanyAxios(
    {
      url: '/companyInfo/detail/rank/queryRankPageList',
      method: 'post',
      data: data
    },
    {
      extra_handle_response: true
    }
  )
}

export const postCompanyInfoDetailBidding = (data: any): Promise<any> => {
  return dataCompanyAxios(
    {
      url: '/companyInfo/detail/bidding',
      method: 'post',
      data: data
    },
    {
      extra_handle_response: true
    }
  )
}

export const postCompanyInfoDetailBranchUnit = (data: any): Promise<any> => {
  return dataCompanyAxios(
    {
      url: '/companyInfo/detail/branchUnit',
      method: 'post',
      data: data
    },
    {
      extra_handle_response: true
    }
  )
}
